package 算法.链表算法;

/**
 * Created by zzy on 2018/4/25.
 */
public class ListNode {
      int val;
      ListNode next;
      ListNode(int x) { val = x; }


      //创建链表
      public static ListNode createListNode(int... ints){

          ListNode head=new ListNode(-1);
          ListNode foot=head;
          for(int i=0;i<ints.length;i++){
              foot.next=new ListNode(ints[i]);
              foot=foot.next;
          }

          return head.next;
      }

}
